package com.wutao.panzh.admin.content.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.panzh.entity.InformationItem;
import com.wutao.panzh.annotations.LoginRequired;
import com.wutao.panzh.service.UserAdminService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 此class主要写页面跳转的Handler；
 * 2019年11月18日
 */

@Controller
public class indexController {

    @Reference
    private UserAdminService userAdminService;


    @RequestMapping("/preIndex")
    public String getPreIndex() {
        return "preIndex";
    }

    //当跳转到开始的页面的时候，所有数据进行异步获取；
    @RequestMapping("/index")
    public String getIndex() {
        return "index";
    }


    @RequestMapping("/modify_information")
    public String getModitfInfomation() {
        return "modify_information";
    }

    //updateInformation是用的同步请求过去的，所以在这里就没有，因为必须要携带数据；
    @RequestMapping("/add_information")
    public String getAddInformation() {
        return "add_information";
    }

    @RequestMapping("/show_famous_scenery")
    public String getShowFamousScenery() {
        return "show_famous_scenery";
    }

    @RequestMapping("/modify_famous_scenery")
    public String getModitfFamousScenery() {
        return "modify_famous_scenery";
    }

    @RequestMapping("/add_famous_scenery")
    public String getAddFamousScenery() {
        return "add_famous_scenery";
    }

    @RequestMapping("/show_delicious_food")
    public String getShowDeliciousFood() {
        return "show_delicious_food";
    }

    @RequestMapping("/modify_delicious_food")
    public String getModifyDeliciousFood() {
        return "modify_delicious_food";
    }

    @RequestMapping("/add_delicious_food")
    public String getAddDeliciousFood() {
        return "add_delicious_food";
    }

    //    modify_route.html
    @RequestMapping("/modify_route")
    public String getModifyRoute() {
        return "modify_route";
    }


    //    show_route_detail
    @RequestMapping("/show_route_detail")
    public String getShowRouteDetail() {
        return "show_route_detail";
    }

    //    show_now_route
    @RequestMapping("/show_now_route")
    public String getShowNowRoute() {
        return "show_now_route";
    }

    //    show_now_hotel
    @RequestMapping("/show_now_hotel")
    public String getShowNowHotel() {
        return "show_now_hotel";
    }

    //    add_hotel
    @RequestMapping("/add_hotel")
    public String getAddHotel() {
        return "add_hotel";
    }

    //    form-wizard,去往查看所有房源信息的页面
    @RequestMapping("/form-wizard")
    public String getFormWizard() {
        return "form-wizard";
    }

    //    show_user
    @RequestMapping("/show_user")
    public String getShowUser() {
        return "show_user";
    }

    //    add_user
    @RequestMapping("/add_user")
    public String getAddUser() {
        return "add_user";
    }

    //    userAdminInfo
    @RequestMapping("/admin_information")
    public String getUserAdminInfomation() {
        return "admin_information";
    }

    //    midityPassWord
    @RequestMapping("/midityPassWord")
    public String midityPassWord() {
        return "midityPassWord";
    }


}
